package my.jieh.tips.io.password;

import java.io.*;

/**
 * <p>Title: Core Java Technologies Tech Tips</p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2002</p>
 * <p>Company: Blueimp</p>
 * @author jieh
 * @version 1.0
 */

public class PasswordApp {
	public static void main(String argv[]) {
		 PasswordField passfield = new PasswordField();
		 String password = null;
		 try {
				password = passfield.getPassword("Enter your password: ");
				System.out.println("The password entered is: "+password);
				password = passfield.getPassword("Enter to end... ");
		 } catch(IOException ioe) {
				ioe.printStackTrace();
		 }
	}
}